<?php
$out = array(
    'i'    => null,
    'f'    => null,
    'g'    => null,
);
if ($this->Session->check('Auth.User.id')){
    $out = array(
        'i'    => $this->Session->read('Auth.User.id'),
        'f'    => $this->Session->read('Auth.User.facebook'),
        'g'    => $this->Session->read('Auth.User.google'),
    );
}
echo json_encode($out);
?>
